
--[[
	消息处理

--]]



---------------------------------------------------------
-- class
---------------------------------------------------------
local Handler = class("Handler")

function Handler:ctor(name)
    self:register()
end


function Handler:register()

end



--正在玩的人数
function Handler:getPlayingNum()
    local users = g.user_mgr:getPlayingNum()
    local num = #users
    print("Handler:getPlayingNum ", num)
    return num
end

--坐着的人数
function Handler:getSeatingNum()
    local users = g.user_mgr:getSeatUser()
    local num = #users
    print("Handler:getSeatUser ", num)
    return num
end

function Handler:setTableId(id)
    g.data.table_id = id
end

return Handler